import Vue from 'vue'
import Vuex from 'vuex'
import { MENU, SEARCH, SQUARE } from '../../static/const'
const HEADER_CHANGE = 'HEADER_CHANGE'
Vue.use(Vuex)
export default new Vuex.Store({
    state: {
        singleSection: { is: false, type: MENU, title: "" }
    },
    mutations: {
        [HEADER_CHANGE](state, meta) {
            console.log('mutation')
            state.singleSection = meta
        }
    }
})
